<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>


<body>


	<%-- <form:form action=" ${pageContext.request.contextPath}/user/edit/${user.user_ID }" modelAttribute="user"  method="post">
<table>
	<tr><td><spring:message code="user.name"/></td><td><form:input path="user_Name"/><form:errors path="user_Name"/></td></tr>
	<tr><td><spring:message code="user.pwd"/></td><td><form:input path="password"/><form:errors path="password"/></td></tr>
	<tr><td><spring:message code="user.age"/></td><td><form:input path="age"/><form:errors path="age"/></td></tr>
	<tr><td><spring:message code="user.remark"/></td><td><form:input path="remark"/><form:errors path="remark"/></td></tr>
	<tr><td><spring:message code="user.updUser"/></td><td><form:input path="updUser"/><form:errors path="updUser"/></td></tr>
	<tr><td><input type="submit" value="submit"></td></tr>
</table>
</form:form> --%>

	<div class="content">
		<div class="main-content">
			<ul class="nav nav-tabs">
				<li class="active"><a href="#home" data-toggle="tab">Profile</a></li>
				<li><a href="#profile" data-toggle="tab">Password</a></li>
			</ul>

			<div class="row">
				<div class="col-md-8">
					<br>

					<div id="myTabContent" class="tab-content">


						<div class="tab-pane active in" id="home">
							<form:form id="editForm"
								action=" ${pageContext.request.contextPath}/stu/edit/${stuVO.examStuId}"
								modelAttribute="stuVO" method="post" >
								
								<div class="form-group">
									<label><spring:message code="stu.stuName" /></label>
									<form:input path="examStuName" cssClass="form-control required"  />
									<form:errors path="examStuName" />
								</div>

								<div class="form-group">
									<label><spring:message code="stu.stuNumber" /></label>
									<form:input path="examStuNumber" cssClass="form-control {required:true,digits:true}"  />
									<form:errors path="examStuNumber" />
								</div>
								<div class="form-group">
									<label><spring:message code="stu.stuPassword" /></label>
									<form:input path="examStuPassword" cssClass="form-control {required:true,maxlength:8,minlength:4}"  />
									<form:errors path="examStuPassword" />
								</div>
								
								<div class="form-group">
									<label><spring:message code="stu.stuBrithday" /></label>
									<form:input path="examStuBrithday" id="datepicker" cssClass="form-control dataISO:true"/>
								</div>
								
								   <div class="form-group">
        								<label><spring:message code="stu.stuSex"/></label>
       									<form:radiobutton path="examStuSex" value="M" />Male<form:radiobutton path="examStuSex" value="F"/>FeMale
        							</div>
								
								<div class="form-group">
									<label><spring:message code="stu.stuTel" /></label>
									<form:input path="examStuTel" cssClass="form-control {digits:true,required:true}" />
								</div>
								<div class="form-group">
									<label><spring:message code="stu.stuAddress" /></label>
									<form:input path="examStuAddress" cssClass="form-control {required:true,maxlength:50}" />
								</div>
								<div class="form-group">
									<label><spring:message code="stu.stuDone" /></label>
									<form:input path="examStuDone" cssClass="form-control" />
								</div>

							

								<div class="btn-toolbar list-toolbar">
									<button class="btn btn-primary" >
										<i class="fa fa-save"></i> Update
									</button>
								</div>
							</form:form>
						</div>

						<div class="tab-pane fade" id="profile">

							<form id="tab2">
								<div class="form-group">
									<label>New Password</label> <input type="password"
										class="form-control">
								</div>
								<div>
									<button class="btn btn-primary">Update</button>
								</div>
							</form>
						</div>
					</div>


				</div>
			</div>
			<script type="text/javascript">
			$(function() {
		    	  $( "#datepicker" ).datepicker({ dateFormat: 'yy-mm-dd' });

		  	});
			
			$().ready(function(){
				$("#editForm").validate({
					errorPlacement: function(error, element) {  
					    error.appendTo(element.prev());  
					}
				});
			});
			</script>
</body>
</html>